package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * PC机构端 - 机构认证相关接口
 * @author: menghao
 * @version: 1.0
 * @Date: 2025/09/16 15:50
 * @Description:
 */
@RestController("agencycertificationController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "PC机构端 - 机构认证相关接口")
public class AgencyCertificationController {
    @Resource
    private IAgencyCertificationService agencyCertificationService;

    /**
     * 机构认证
     * @param dto
     */
    @PostMapping()
    public void agencyCertificationAudit(@RequestBody AgencyCertificationAuditAddReqDTO dto) {
        agencyCertificationService.agencyCertificationAudit(dto);
    }

    /**
     * 获取认证拒绝原因
     * @return
     */
    @GetMapping("/rejectReason")
    public RejectReasonResDTO rejectReason() {
        return agencyCertificationService.getRejectReason();
    }

}
